package com.github.livebase.util.base;

/**
 * @ClassName MathUtil
 * @description:
 * @author: biao532
 * @create: 2024-02-02 17:36
 * @Version 1.0
 **/
public class MathUtil {
    public static int max(int... number) {
        Assert.isTrue(number.length > 0, "the count of parameter must more than one");
        int max = number[0];
        for (int i = 1, l = number.length; i < l; i++) {
            if (max < number[i]) {
                max = number[i];
            }
        }
        return max;
    }
}
